<?php
namespace app\common\validate;
use think\Validate;

class Bis extends Validate  //validate验证
{	

       protected $rule=[
	         'name' => 'require|max:25',
			 'email' => 'email',
			 'logo' => 'require',
			 'city_id' => 'require',
			 'bank_info' => 'require',
			 'bank_name' => 'require',
			 'bank_user' => 'require',
			 'faren' => 'require',
			 'faren_tel' => 'require',
	   
	   
	   ];

       //场景设置
          protected $scene = [
	    'add' => ['name', 'email','logo','city_id','bank_info','bank_name',
		'bank_user','faren','faren_tel'],

		
	];














/*

	protected $rule=[
	      ['name', 'require|max:10', '分类名不能为空|分类名不能超过十个字'],
		  ['parent_id', 'number'],
		  ['id', 'number'],
		  ['status', 'number|in:-1,0,1', '状态必须是数字|只能是-1,0,1'],
	
	
	
	
	];
	//场景设置
	protected $scene = [
	    'add' => ['name', 'parenr_id','id'],
		'listorder' => ['id', 'listorder'],
		'status' => ['id', 'status'],
		
	];
	
	
	*/
	
	
	
	
	
}
?>